<template>
	<view>
		<image class="imgWrap" :src="imgLink" mode="widthFix"></image>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				dpLink:"https://ruomian.oss-cn-chengdu.aliyuncs.com/1642392877947z2dXJ.png",
				dpReal:"https://ruomian.oss-cn-chengdu.aliyuncs.com/16423928779472cynX.png",
				dyLink:"https://ruomian.oss-cn-chengdu.aliyuncs.com/1642392877947T7hym.png",
				dyReal:"https://ruomian.oss-cn-chengdu.aliyuncs.com/16423928779475rak2.png",
				wbLink:"https://ruomian.oss-cn-chengdu.aliyuncs.com/1642392877947DDneZ.png",
				wbReal:"https://ruomian.oss-cn-chengdu.aliyuncs.com/1642392877947shs2P.png",
				xhsLink:"https://ruomian.oss-cn-chengdu.aliyuncs.com/1642392877947rSMib.png",
				xhsReal:"https://ruomian.oss-cn-chengdu.aliyuncs.com/1642392877947YYJyj.png",
				imgLink:""
			}
		},
		onLoad(options) {
      // #ifdef APP-PLUS
      var args = plus.runtime.arguments;
      if(args){
        app.$vm.setShareDetail(args);
      }
      // #endif
			console.log(options)
			if(options.type=="link"){
				if(options.index==1){
					this.imgLink = this.dyLink;
				}else if(options.index==2){
					this.imgLink = this.xhsLink;
				}else if(options.index==3){
					this.imgLink = this.dpLink;
				}else if(options.index==4){
					this.imgLink = this.wbLink;
				}
			}else{
				if(options.index==1){
					this.imgLink = this.dyReal;
				}else if(options.index==2){
					this.imgLink = this.xhsReal;
				}else if(options.index==3){
					this.imgLink = this.dpReal;
				}else if(options.index==4){
					this.imgLink = this.wbReal;
				}
			}
		},
		methods: {
			
		}
	}
</script>

<style scoped>
	.imgWrap{
		/* position: fixed; */
		width: 100%;
		z-index: 99;
		top: 0;
		left: 0;
	}
</style>
